chrome.tabs.onUpdated.addListener(onUpdate);
chrome.tabs.onCreated.addListener(onCreate);
chrome.browserAction.onClicked.addListener(function() {
  window.open('place.html', 'testwindow', 'width=700,height=600');
});

var llog = [];
var createCount = 0;

function onUpdate(tabId, changeInfo, tab){
    if (changeInfo.status == 'complete') {
        //alert("Update! id:"+tab.id+" opener:"+tab.openerTabId);
  }
}


function onCreate(tab){
        //alert("Create! id:"+tab.id+" opener:"+tab.openerTabId);
        //tab.openerTabId = null;

        var title = tab.title;
        var id = tab.id;
        llog.push({'id':id, 'title':title}); 
}

